package edu.scnu.fans.fingertip.common.api;

import lombok.Data;

import java.util.Collection;

public class RowResponse<T extends Collection<?>> extends ApiResponse<RowResponse.RowData<T>> {
	@Data
	public static class RowData<T> {
		private T rows;
		public RowData(T rows) {
			this.rows = rows;
		}
	}

	public RowResponse(T rows) {
		super(new RowData<T>(rows));
	}
}
